<!DOCTYPE html >
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
<title>登陆</title>
<link href="../files/css/bootstrap.min.css" title="" rel="stylesheet" />
<link title="orange" href="../files/css/login.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../files/js/jquery.min.js"></script>
<script type="text/javascript" src="../files/js/jquery-1.10.2.js"></script>
<script type="text/javascript">
$(function(){
	
	
	$("#backLogin").click(function(){
		url = "../manager/isLogin.action";
		datas = {
			manUser : $("#manUser").val(),
			manPwd : $("#manPwd").val(),
		};
		$.ajax({
			asyn : true,
			type : "POST",
			url : url,
			data : datas,
			success : function(fh) {
				if(fh.msg == "0"){
					$("#tishi").text("账号或用户名错误");
				}else{
					setTimeout(function(){
						location.href = "../page/background/indexs.html";
					},200);
				}
			}
		});
	});
});
</script>
<style>
#tishi{
	color: red;
}

</style>
</head>

<body>
  
  <div style="height:1px;"></div>
  <div class="login">
     <header>
	    <h1>登陆</h1>
	 </header>
	 <div class="sr">
		    <div class="name">
				<label>
				<i class="sublist-icon glyphicon glyphicon-user"></i>
				</label>
				<input type="text"  placeholder="这里输入登录名" class="name_inp" id="manUser" name="manUser">
			</div>
			 <div class="name">
				<label>
				<i class="sublist-icon glyphicon glyphicon-pencil"></i>
				</label>
				<input type="text"  placeholder="这里输入登录密码" class="name_inp" id="manPwd" name="manPwd">
				<p id="tishi"></p>
			</div>
			<button class="dl" id="backLogin" name="backLogin">登陆</button>
	 </div>
  </div>


</body>
</html>
